//
//  HDSinglePickerView.h
//  AccountEasy
//
//  Created by 黄志刚 on 2020/8/14.
//  Copyright © 2020 AccountEasy. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^customBlock)(NSInteger selectedRow,NSString *selectedString);

@interface HDSinglePickerView : UIView
@property (nonatomic ,copy)NSString *titleString;
@property (nonatomic ,assign)NSInteger selectedRow;
@property (nonatomic ,copy)NSString *selectedString;
@property (nonatomic ,copy)customBlock getPickerValue;

/**
 初始化选择器
 @param title 选择器标题
 @param contentArray 数据
 */
- (instancetype)initWithTitle:(NSString *)title  contentArray:(NSArray *)contentArray;
/**
 初始化选择器
 @param title 选择器标题
 @param contentArray 数据
 @param selectedIndex 刚进来就选中哪一行
 */
- (instancetype)initWithTitle:(NSString *)title  contentArray:(NSArray *)contentArray selectedIndex:(NSUInteger)selectedIndex;

/**
 显示PickerView
 */
- (void)show;

@end


